<extend name="Public/base"/>

<block name="body">
    <script type="text/javascript" src="__STATIC__/uploadify/jquery.uploadify.min.js"></script>
    <div class="main-title">
        <h2>商品价格添加</h2>
    </div>
    <div class="tab-wrap">
        <div class="tab-content">
            <form action="{:U('Price/add')}" method="post" class="form-horizontal">
                <volist name="res" id="vo">
                    <div class="form-item">
                        <input type="hidden" class="text input-large" name="sid[]" readonly value="{$sid}">
                        <input type="hidden" class="text input-large" name="vid[]" readonly value="{$vo|array_keys|implode=',' }">
                        <input type="hidden" class="text input-large" name="title[]" readonly value="{$title}">
                        <div class="controls">
                            <h4>属性值:
                             <volist name="vo" id="v"> 
                             {$v.kname}:{$v.vname}&nbsp&nbsp

                            </volist></h4>
                            <h4>价格</h4><input type="text" class="text input-large" name="price[]" value="">
                            <h4>库存</h4><input type="text" class="text input-large" name="count[]" value="">
                        </div>
                    </div>
                </volist>
                <div class="form-item">
                    <button class="btn submit-btn " id="submit" type="submit" target-form="form-horizontal">添 加</button>
                    <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
                </div>
            </form>
        </div>
    </div>
</block>

<block name="script">
    <script type="text/javascript">
        //导航高亮
        highlight_subnav('{:U('Price/index')}');
    </script>
</block>